import request from '@/utils/request'

// 查询学生列表
export function listStudent(query) {
  return request({
    url: '/system/student/stuAllInfo',
    method: 'get',
    params: query
  })
}

// 查询学生详细
export function getStudent(studentId) {
  return request({
    url: '/system/student/' + studentId,
    method: 'get'
  })
}

// 新增学生
export function addStudent(data) {
  return request({
    url: '/system/student',
    method: 'post',
    data: data
  })
}

// 修改学生
export function updateStudent(data) {
  return request({
    url: '/system/student/edit/sut',
    method: 'put',
    data: data
  })
}

// 删除学生
export function delStudent(studentId) {
  return request({
    url: '/system/student/' + studentId,
    method: 'delete'
  })
}
// 系部下拉列表
export function deptList(query) {
  return request({
    url: '/system/dept/departmentList',
    method: 'get',
    params: query
  })
}
// 专业下拉列表
export function majorList(query) {
  return request({
    url: '/system/major/selectList',
    method: 'get',
    params: query
  })
}
// 班级下拉列表
export function clazzList(query) {
  return request({
    url: '/system/clazz/selectlist',
    method: 'get',
    params: query
  })
}
// 课程下拉列表
export function courseList(query) {
  return request({
    url: '/system/course/selectList',
    method: 'get',
    params: query
  })
}
// 学期下拉列表
export function termList(query) {
  return request({
    url: '/system/term/selectList',
    method: 'get',
    params: query
  })
}